#!/bin/bash
set -e
set -x
MYDIR="${0%/*}"
cd "$MYDIR/.."
source "recipes/common.sh"


# RECIPE START gnulib

for dir in bin share/info share/gnulib; do
	install -m 755 -d "${stage}${prefix}/$dir"
done

cd gnulib
find . | cpio -pumd "${stage}${prefix}/share/gnulib"

for tool in check-module gnulib-tool; do
	ln -sfr "${stage}${prefix}/share/gnulib/$tool" "${stage}${prefix}/bin/${tool}"
done

# RECIPE END gnulib
